#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2018 crane <crane@his-pc>
#
# Distributed under terms of the MIT license.

"""

"""


class Solution:
    """
    @param nums: a integer array
    @return: nothing
    """
    def reverseArray(self, nums):
        l = len(nums)
        for i in range(l//2):
            pair_i = l - 1 - i
            nums[i], nums[pair_i] = nums[pair_i], nums[i]
        return nums


def main():
    print("start main")

    s = Solution()
    nums = [1,2,3]
    s.reverseArray(nums)
    print(nums)

if __name__ == "__main__":
    main()
